import request from "@/utils/request";

//驾驶舱左侧业务数量统计接口
/* {
    "deptId":201,
    "business_date":"2025-07-03 00:00:00"
} */
export function countPackageType(data) {
  return request({
    url: "/system/business/countPackageType",
    method: "post",
    data: data,
  });
}

//驾驶舱下侧统计接口
/* {
  "packageType": 0,
  "deptId":102
//   "effectiveDate": "2025-01-01",
//   "expireDate": "2025-12-31"
} */
export function countByPackageTypeAndDept(data) {
  return request({
    url: "/system/business/countByPackageTypeAndDept",
    method: "post",
    data: data,
  });
}
//驾驶舱右侧统计接口
/* {
    "deptId":108
} */
export function countByRanking(data) {
  return request({
    url: "/system/business/countByRanking",
    method: "post",
    data: data,
  });
}
//驾驶舱上侧统计接口
/* {
    "deptId":102
} */
export function countByPermeability(data) {
  return request({
    url: "/system/business/countByPermeability",
    method: "post",
    data: data,
  });
}
